﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using YiSha.Business.OrganizationManage;
using YiSha.Entity.OrganizationManage;
using YiSha.Util.Model;
// For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860

namespace YiSha.Admin.Web.Controllers
{
    public class NewsController : Controller
    {
        // GET: /<controller>/
        private MyBLL myBLL = new MyBLL();
        // GET: /<controller>/
        public async Task<IActionResult> Index()
        {
            TData<MyEntity> obj = await myBLL.GetEntity(182428040796573696);
            MyEntity mylist = obj.Result;
            ViewBag.Mylist = mylist;
            return View();
        }
        // GET: /<controller>/
        public async Task<IActionResult> NewsList()
        {
            TData<MyEntity> obj = await myBLL.GetEntity(182428040796573696);
            MyEntity mylist = obj.Result;
            ViewBag.Mylist = mylist;
            return View();
        }
        // GET: /<controller>/
        public async Task<IActionResult> NewsDetail()
        {
            TData<MyEntity> obj = await myBLL.GetEntity(182428040796573696);
            MyEntity mylist = obj.Result;
            ViewBag.Mylist = mylist;
            return View();
        }
        public async Task<IActionResult> Process()
        {
            TData<MyEntity> obj = await myBLL.GetEntity(182428040796573696);
            MyEntity mylist = obj.Result;
            ViewBag.Mylist = mylist;
            return View();
        }
    }
}
